Skip to content

Fix escaped quotes and newlines for Android strings #3650

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 21, 2025

Conversation

eemeli
Copy link
Member

@eemeli eemeli commented May 21, 2025

Fixes two related regressions from #3611, as literal " quotes are now showing up as \\\" double-escaped, and escaped newlines \n are showing up as \\n.

Also normalises the presentation of escaped newlines to always be followed by a literal newline, and drops any whitespace immediately after an escaped newline when serialising.

@eemeli eemeli requested a review from mathjazz May 21, 2025 10:14
Copy link
Collaborator

@mathjazz mathjazz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and it looks good!

@mathjazz mathjazz merged commit 640dd14 into mozilla:main May 21, 2025
2 checks passed
@eemeli eemeli deleted the fix-android-escapes branch May 21, 2025 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants